package com.yungam.common.bean.alarm_config;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@ApiModel("告警配置")
@TableName("alarm_config")
public class AlarmConfig {

    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("设备id")
    private Integer equipId;
    @ApiModelProperty("采集项id")
    private Integer itemId;
    @ApiModelProperty(value = "告警判断类型", notes = "Max:大于时告警,Min:小于时告警,EQ:等于时告警")
    @TableField("`type`")
    private Type.AlarmType type;
    @ApiModelProperty("告警值")
    @TableField("`value`")
    private Double value;
    @ApiModelProperty(value = "告警组")
    @TableField("`group`")
    private Type.AlarmGroup group;
    @ApiModelProperty("告警等级")
    @TableField("`level`")
    private Integer level;

}
